﻿using System;
using UnityEngine;

public class DestroyEventListener : MonoBehaviour
{
    public Action onDestroy;

    private void OnDestroy()
    {
        if (this.onDestroy != null)
        {
            this.onDestroy();
        }
    }
}

